import { reactive } from "vue";

export default function useData() {
  const pageData = reactive({
    columnData: [
      {
        label: "序号",
        prop: "index",
        width: "80px",
        sortable: true
      },
      {
        label: "线路",
        prop: "linkid",
        width: "80"
      },
      {
        label: "LAN",
        prop: "lan",
        width: "100"
      },
      {
        label: "LAN MAC",
        prop: "lan_mac",
        width: "auto"
      },
      {
        label: "WAN",
        prop: "wan",
        width: "100"
      },
      {
        label: "WAN MAC",
        prop: "wan_mac",
        width: "auto"
      },
      {
        label: "模式",
        prop: "linkmode",
        width: "100"
      },
      {
        label: "速率",
        prop: "speed",
        width: "auto"
      },
      // {
      //   label: "网络配置",
      //   prop: "description",
      //   width: "auto"
      // },
      // {
      //   label: "状态",
      //   prop: "description",
      //   width: "auto"
      // },
      {
        label: "操作",
        prop: "operation",
        width: "150"
      }
    ]
  });
  return {
    pageData
  };
}
